package com.qf.user.client;

import com.qf.base.dto.sms.SmsDTO;
import com.qf.base.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 30909
 * 调用短信自服务的工具类
 */
@FeignClient(value = "sms-service")

public interface SmsClient {


    @PostMapping("qf/user/sms/send")
    R send(@RequestBody SmsDTO smsDTO);

    @PostMapping("qf/user/sms/check")
    R check(@RequestBody SmsDTO smsDTO);

}
